rm -rf $HOME/.npm/
rm -rf $HOME/.cache/pnpm

# 阿里加速
npm config set registry https://registry.npmmirror.com
# npm config set registry https://mirrors.cloud.tencent.com/npm/
# npm config set registry https://mirrors.huaweicloud.com/repository/npm/

# npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
# npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips"

# App="node pnpm node-gyp neovim http-server typescript @types/node ts-node-dev eslint prettier typescript-language-server @astrojs/language-server svelte-language-server @microsoft/inshellisense"

App="node pnpm neovim http-server @astrojs/language-server svelte-language-server"

for s in ${App}; do
    volta install $s
done
